cmake_minimum_required(VERSION 3.0.4)
project(odom_converter)

set(CMAKE_BUILD_TYPE "Release")
ADD_COMPILE_OPTIONS(-std=c++14 )

set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")

# find_package(Pkg REQUIRED COMPONENTS nlohmann)

#ros package
find_package(catkin REQUIRED COMPONENTS
  roscpp
  roslib
  std_msgs
  nav_msgs
  mavros_msgs
  geometry_msgs
)

catkin_package(
  INCLUDE_DIRS include
  #LIBRARIES cmd_fsm_node
  #CATKIN_DEPENDS roscpp
)

include_directories(
  include
  SYSTEM
  ${catkin_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/include
)

add_executable(${PROJECT_NAME}_node src/odom_converter_node.cpp src/get_odom.cpp)

target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ${nlohmann_LIBRARIES})
